package events.misc
{
	import flash.events.Event;

	public class LoginEvent extends Event
	{
		public static const LOGIN:String 				= "LoginEvent_Login";
		public static const REGISTER:String				= "LoginEvent_Register";
		
		public static const PASS_NOT_MATCH:String		= "LoginEvent_PassNotMatch";
		public static const SUCCESS:String 				= "LoginEvent_Success";
		public static const CHANGE_PASS:String			= "LoginEvent_ChangePass";		
		
		public static const CHECK_EMAIL:String			= "LoginEvent_CheckEmail";
		public static const EMAIL_EXIST:String			= "LoginEvent_EmailExist";
		public static const EMAIL_NOT_EXIST:String		= "LoginEvent_EmailNotExist";
		
		public static const CHECK_USERNAME:String		= "LoginEvent_CheckUsername";
		public static const USERNAME_EXIST:String		= "LoginEvent_UsernameExist";
		public static const USERNAME_NOT_EXIST:String	= "LoginEvent_Username_Not_Exist";
		
		public var username:String;
		public var password:String;
		public var email:String;
		public var fullName:String;
		public var shortName:String;
		public var saveInfo:Boolean;
		public var errorMessage:String = "";
		
		public function LoginEvent(type:String, username:String = "", password:String = "", email:String = "")
		{
			super(type, true, false);
			this.username = username;
			this.password = password;
			this.email = email;
		}
		
	}
}